<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="se"
	uri="http://www.springframework.org/security/tags"%>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script src="//cdn.ckeditor.com/4.4.4/standard/ckeditor.js"></script>
<script src="resources/js/patient/noticeWrite.js"></script>
<link type="text/css" rel="stylesheet"
	href="resources/css/patient/articleHeader.css">
<link type="text/css" rel="stylesheet"
	href="resources/css/patient/noticeWrite.css">
<div>
	<div class="nav_information">
		<img src="resources/images/gr_navi_home.png">&nbsp;&nbsp;>&nbsp;&nbsp;병원소식
	</div>
	<div class="nav_detail_name">병원소식</div>
	<div class="nav_information_detail">
		<div class="nav_information_detail_bgimg">
			<p>메디컬탑병원 공지 및 소식 입니다.</p>
			<p>병원을 이용하시는 고객을 위하여 다양한 소식과 서비스를 알려드립니다.</p>
		</div>
	</div>
</div>
<div class="body_div">
	<se:authentication property="name" var="writer" />
	<form method="post" action="noticeWrite.do?writer=${writer}">
		<div id="n_body">
			<div id="m_tr">
				글제목 <input type="text" id="n_title" name="title"
					placeholder="제목을 입력하세요" required="required">
			</div>
			<div id="tarea">
				<textarea name="content" id="content" placeholder="내용을 입력하세요"
					required="required"></textarea>

			</div>
			<div class="writeCancelBtnDiv">
				<input type="submit" id="noticeBtn" class="normalBtn" value="확인">
				<input type="button" id="noticeBtn" class="normalBtn" value="취소"
					onclick="history.back(1);">
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
	CKEDITOR.replace('content', {
		toolbar : 'standard',
		uiColor : '#9AB8F3',
		height : '500px',
		enterMode : CKEDITOR.ENTER_BR, // 에디터 엔터를 <br> 태그를 사용함.
		shiftEnterMode : CKEDITOR.ENTER_P // 에디터 시프트 + 엔터를 <p> 태그를 사용함
	});
</script>